<?

	@include_once("fta.php");
	if (function_exists('fta_registerModules')){
		fta_registerModules(
			array(
			"cmsConfig",
			"site/fta/config",	
			"FTACart/FTACart",
			"FTACart/FTAOrderContainer"
			)
		);
	} else {
		//we could attempt to fangle the include path.. 
	}
	

	class FTAPayPalOrderContainer extends FTAOrderContainer {
		
		
		function __construct(){
			parent::__construct();
			
			
			$this->keys = array_merge_recursive(
				array(
					EXTRACT_STRING => array("payPalReceive","payPalTxId","ipnMessage","ipnResponse","currency")
				),
				$this->keys
			);
			
				
			
			$this->dataModelKeyMapping = 
				array_merge(
					$this->dataModelKeyMapping,
					array(													
						"payPalReceive"=>"extra12",
						"payPalTxId"=>"extra13",
						"ipnMessage"=>"extra14",
						"ipnResponse"=>"extra15",
						"currency"=>"extra9"
					)
				);
										
		}
		
	
		
	}
	
